package org.helgoboss.scala_additions

/**
 * This Iterable[String] wrapper provides methods related to the camel case writing style.
 */
class CamelCaseComponents(i: Iterable[String]) {
    /**
     * Converts the wrapped Iterable[String] into a typical (lower) camel case string assuming that all of the Iterable's elements are the camel case components.
     */
    lazy val camelCaseString = i.head.head.toLower + i.head.tail + i.tail.map(_.capitalize).mkString("")
}